Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { insertParagraphAtPos } from '../customCommands'; |
||
13 | jQuery(document).on('click', '.ProseMirror button.addParagraphButton', function insertParagraph(event) { |
||
14 | event.stopPropagation(); |
||
15 | event.preventDefault(); |
||
16 | const $button = jQuery(this); |
||
17 | const viewID = $button.data('viewid'); |
||
18 | const direction = $button.data('direction'); |
||
19 | const view = window.Prosemirror.views[viewID]; |
||
20 | |||
21 | const pos = view.posAtDOM(event.target.parentNode); |
||
22 | const command = insertParagraphAtPos(pos, direction); |
||
23 | command(view.state, view.dispatch); |
||
24 | }); |
||
25 | } |
||
50 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.